package com.lglbc.day11;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 乐哥聊编程
 * @Doc 关注公众号"乐哥聊编程"获取文档和源码
 * @Date 2023/4/9
 * @Description
 */
@RestController
public class IndexController {
    @Value("${server.port}")
    public Integer port;
    @RequestMapping("/")
    public String index(Authentication authentication){
        return "hello"+authentication.getName()+",i`m port:"+port;
    }
}
